package com.ruoyi.service.impl;

import java.util.List;

import com.ruoyi.domain.ExExperimentSupplementary;
import com.ruoyi.mapper.ExExperimentSupplementaryMapper;
import com.ruoyi.service.IExExperimentSupplementaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 实验补充Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-29
 */
@Service
public class ExExperimentSupplementaryServiceImpl implements IExExperimentSupplementaryService
{
    @Autowired
    private ExExperimentSupplementaryMapper exExperimentSupplementaryMapper;

    /**
     * 查询实验补充
     * 
     * @param id 实验补充主键
     * @return 实验补充
     */
    @Override
    public ExExperimentSupplementary selectExExperimentSupplementaryById(Long id)
    {
        return exExperimentSupplementaryMapper.selectExExperimentSupplementaryById(id);
    }

    /**
     * 查询实验补充列表
     * 
     * @param exExperimentSupplementary 实验补充
     * @return 实验补充
     */
    @Override
    public List<ExExperimentSupplementary> selectExExperimentSupplementaryList(ExExperimentSupplementary exExperimentSupplementary)
    {
        return exExperimentSupplementaryMapper.selectExExperimentSupplementaryList(exExperimentSupplementary);
    }

    /**
     * 新增实验补充
     * 
     * @param exExperimentSupplementary 实验补充
     * @return 结果
     */
    @Override
    public int insertExExperimentSupplementary(ExExperimentSupplementary exExperimentSupplementary)
    {
        return exExperimentSupplementaryMapper.insertExExperimentSupplementary(exExperimentSupplementary);
    }

    /**
     * 修改实验补充
     * 
     * @param exExperimentSupplementary 实验补充
     * @return 结果
     */
    @Override
    public int updateExExperimentSupplementary(ExExperimentSupplementary exExperimentSupplementary)
    {
        return exExperimentSupplementaryMapper.updateExExperimentSupplementary(exExperimentSupplementary);
    }

    /**
     * 批量删除实验补充
     * 
     * @param ids 需要删除的实验补充主键
     * @return 结果
     */
    @Override
    public int deleteExExperimentSupplementaryByIds(Long[] ids)
    {
        return exExperimentSupplementaryMapper.deleteExExperimentSupplementaryByIds(ids);
    }

    /**
     * 删除实验补充信息
     * 
     * @param id 实验补充主键
     * @return 结果
     */
    @Override
    public int deleteExExperimentSupplementaryById(Long id)
    {
        return exExperimentSupplementaryMapper.deleteExExperimentSupplementaryById(id);
    }
}
